import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import router from "@/router"

import store from "./store"

import "@/mock"

import { Loading, MessageBox ,Message } from 'element-ui';

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$message = Message;

// 注册全局组件
import TypeNav from "./components/TypeNav"
import Pagination from "./components/Pagination"
Vue.component("TypeNav",TypeNav)
Vue.component("Pagination",Pagination)
new Vue({
  router,
  store,
  beforeCreate(){
    Vue.prototype.$bus = this
  },
  render: h => h(App),
}).$mount('#app')
